var express = require("express");
var router = express.Router();

router.get("/", function (req, res, next) {
  const students = [
    { id: "001", name: "tom", age: 18 },
    { id: "002", name: "jerry", age: 19 },
    { id: "003", name: "tony", age: 20 },
  ];
  res.send(students);
});

router.get("/one", function (req, res, next) {
  const students = [{ id: "001", name: "tom", age: 18 }];
  res.send(students);
});
module.exports = router;
